package UIFree.controls
{
	import UIFree.uif_component;
	import UIFree.uif_ecomponent;
	import UIFree.uif_hotspotEllipse;
	
	import flash.geom.Rectangle;

	public class uif_ebutton extends uif_hotspotButton {
		public function uif_ebutton(parent:uif_component, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, styleClass:String='') {
			super(parent, ax, ay, awidth, aheight, styleClass);
		}
		
		override protected function createHotspot(): uif_ecomponent {
			var inner: Rectangle = getInner();
			return new uif_hotspotEllipse(this, inner.x, inner.y, inner.width, inner.height);
		}
		
		override protected function paint(a_styleClass:String, a_method: String = ''):void {
			var rect: Rectangle = getBorder();
			this.draw_ellipse(rect.x, rect.y, rect.width, rect.height, style);
		}		
	}
}